﻿using System;
using System.ComponentModel.DataAnnotations;
using Xcj.Mes.WholeLine.DataBase.Common;

namespace Xcj.Mes.WholeLine.DataBase.Entity
{
    public class MaintenanceEntity : BaseEntity
    {
        private DateTime _beginTime = DateTime.Now;
        [Alias("开始时间")]
        public DateTime BeginTime { get => _beginTime; set { _beginTime = value; RaisePropertyChanged(); } }
        
        private DateTime _finishedTime = DateTime.Now;
        [Alias("完成时间")]
        public DateTime FinishedTime { get => _finishedTime; set { _finishedTime = value; RaisePropertyChanged(); } }

        private string _deviceSn = string.Empty;
        [Alias("机台编码"), StringLength(32)]
        public string DeviceSn { get => _deviceSn; set { _deviceSn = value; RaisePropertyChanged(); } }

        // 钉卷 组立 老化 座板 其它
        private string _deviceType = string.Empty;
        [Alias("设备类型"), StringLength(32)]
        public string DeviceType { get => _deviceType; set { _deviceType = value; RaisePropertyChanged(); } }

        private string _partName = string.Empty;
        [Alias("部件名称"), StringLength(128)]
        public string PartName { get => _partName; set { _partName = value; RaisePropertyChanged(); } }

        private string _workers = string.Empty;
        [Alias("维保人员"), StringLength(128)]
        public string Workers { get => _workers; set { _workers = value; RaisePropertyChanged(); } }

        private string _officers = string.Empty;
        [Alias("质保人员"), StringLength(128)]
        public string Officers { get => _officers; set { _officers = value; RaisePropertyChanged(); } }

        private string _content = string.Empty;
        [Alias("维保内容"), StringLength(128)]
        public string Content { get => _content; set { _content = value; RaisePropertyChanged(); } }
    }
}
